<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class FirmMessage extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'firm_messages';


    protected $fillable = [
        'firm_id',
        'user_id',
        'name',
        'sex',
        'content',
        'category_id'
    ];

    public function user()
    {
        return $this->belongsTo(User::class,'user_id');
    }
}
